<#cenluan title="蹦跶" menu="tweet" mm="${{title:'蹦跶一下',url:'/tweet/add'}}">
	<ul class="nav nav-tabs mb20" role="tablist">
		<%if(isEmpty(show)||"new"==show){%>
			<li role="presentation" class="active"><a>最新</a></li>
		<%}else{%>
			<li role="presentation"><a href="/tweet">最新</a></li>
		<%}%>
		<%if("hot"==show!){%>
			<li role="presentation" class="active"><a>最火</a></li>
		<%}else{%>
			<li role="presentation"><a href="/tweet?show=hot">最火</a></li>
		<%}%>
		<%if(!isEmpty(session.user)){%>
			<%if("mine"==show!){%>
				<li role="presentation" class="active"><a>我的蹦跶</a></li>
			<%}else{%>
				<li role="presentation"><a href="/tweet?show=mine">我的蹦跶</a></li>
			<%}%>
		<%}%>
		<li class="pull-right hidden-xs">
			<a href="/tweet/add">+蹦跶一下</a>
		</li>
	</ul>
	<%for(tweet in page.list){%>
		<div class="media">
			<a class="media-left" href="/user/show/${tweet.createrId}">
				<img src="${tweet.creater.avatarUrl}" class="avatar-md">
			</a>
			<div class="media-body">
				<p>${tweet.creater.html}：${tweet.content}</p>
				<p class="text-muted small">
						发布于${tweet.createTime,prettyTime}（
							<a href="/tweet/show/${tweet.id}">
								<%if(tweet.photoCount>0){%>
									${tweet.photoCount}图
								<%}%>
								${tweet.commentCount}评
							</a>
							）
				</p>
			</div>
		</div>
		<%if(!tweetLP.last){%>
			<hr class="dashed">
		<%}%>
	<%}%>
	${pageLink}
</#cenluan>